package com.zdlog.ler.service.impl;

import com.zdlog.ler.dao.LerSchoolDao;
import com.zdlog.ler.entity.LerSchool;
import com.zdlog.ler.service.LerSchoolService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: ler-fast
 * @description:
 * @author: tengxianchao
 * @email: admin@zdlog.com
 * @create: 2018-11-23 15:27
 **/
@Service
@Slf4j
public class LerSchoolServiceImpl implements LerSchoolService {


    @Autowired
    private LerSchoolDao lerSchoolDao;


    @Override
    public List<LerSchool> findByCityCode(String cityCode) {
        return lerSchoolDao.findByCityCode(cityCode);
    }

    @Override
    public List<LerSchool> findAll() {
        return lerSchoolDao.findAll();
    }
}
